<%@ page import="com.google.zxing.BarcodeFormat" %>
<%@ page import="com.google.zxing.EncodeHintType" %>
<%@ page import="com.google.zxing.MultiFormatWriter" %>
<%@ page import="com.google.zxing.common.BitMatrix" %>
<%@ page import="com.zx.scp.utils.MatrixToImageWriter" %>
<%@ page import="javax.imageio.ImageIO" %>
<%@ page import="java.util.Hashtable" %>
<!doctype html>
<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"
         language="java" %>
<%@ include file="/jsp/mobile/include/include.jsp" %>
<html lang="cn">
<head>
    <%@ include file="/jsp/mobile/include/header.jsp" %>
    <title>选择收款方式</title>
</head>
<link rel="stylesheet" href="<%=request.getContextPath()%>/style/mobile/styleForPay.css"/>
<body class="nobg">
<!-- <div class="head">
	<div class="auto">
    	<span class="tit">选择收款方式</span>
        <a class="return">
            <i class="icov icov1"></i>
            返回
        </a>
    </div>
</div> -->
<div class="main">
	<!-- <p class="p10 f16">支付方式</p> -->
    <div class="payLit">
    	<dl class="clearfix">
        	<dt><img src="<%=request.getContextPath()%>/images/mobile/fk_03.png"></dt>
            <dd>
            	<p class="ti">微信扫码支付</p>
                <!-- <p class="ci">手续费0.5%，支持大额支付</p> -->
                <p class="ci">手续费0.38%，建议小额多频支付</p>
                <i id="wxPayType" class="icov icov14" onClick="javascript:setPayType('2');"></i>
            </dd>
        </dl>

        <dl class="clearfix">
        	<dt><img src="<%=request.getContextPath()%>/images/mobile/fk_07.png"></dt>
            <dd>
            	<p class="ti">支付宝扫码支付</p>
                <!-- <p class="ci">手续费0.5%，支持大额支付</p> -->
                <p class="ci">手续费0.38%，建议小额多频支付</p>
                <i id="zfbPayType" class="icov icov14" onClick="javascript:setPayType('1');"></i>
            </dd>
        </dl>

       <%--  <dl class="clearfix">
            <dt><img src="<%=request.getContextPath()%>/images/mobile/fk_07.png"></dt>
            <dd>
                <p class="ti">支付宝充值</p>
                <!-- <p class="ci">手续费0.5%，支持大额支付</p> -->
                <p class="ci">手续费0.38%，建议小额多频支付</p>
                <i id="zfbRechargeType" class="icov icov14" onClick="javascript:setPayType('3');"></i>
            </dd>
        </dl> --%>
    </div>
</div>

<div class="sPay">
	<ul class="clearfix">

    	<li class="ya"><span>收款金额：<i class="red">￥<fmt:formatNumber pattern="0.00" value="${incomeAmt}"/></i></span></li>
          <input  type="hidden" name="payType" id="payType" />
        <input type="hidden" name="serviceName" id="serviceName"/>
        <li class="yb"><a href="javascript:getBar()">支付</a></li>
    </ul>
</div>

</body>


<script type="text/javascript">
    setPayType("2");
    function setPayType(payType){

        /* if(payType == '3'){
            $("#wxPayType").attr("class","icov icov14");
            $("#zfbPayType").attr("class","icov icov14");
            $("#zfbRechargeType").attr("class","icov icov15");
            $("#payType").val("1");
            $("#serviceName").val("rechargeForPayType");
        }else  */
       if(payType == '2'){
            $("#wxPayType").attr("class","icov icov15");
            $("#zfbPayType").attr("class","icov icov14");
            $("#zfbRechargeType").attr("class","icov icov14");
            $("#payType").val("2");
            $("#serviceName").val("incomeGetPayForPayType");
       }else{
            $("#wxPayType").attr("class","icov icov14");
            $("#zfbPayType").attr("class","icov icov15");
            $("#zfbRechargeType").attr("class","icov icov14");
            $("#payType").val("1");
            $("#serviceName").val("incomeGetPayForPayType");
       }
    }
    
    function getBar(){
        var payType = $("#payType").val();
        var serviceName=$("#serviceName").val();
       window.location.href = "<%=request.getContextPath()%>/mobile/index/"+serviceName+"?incomeAmt=<c:out value='${incomeAmt}'/>&payChannel="+payType;
    }
    
</script>
</html>